package com.service;

import java.util.List;

import com.dao.UserDao;
import com.entity.User;
import com.util.StringHelp;

public class LoginService {
	
	UserDao dao=new UserDao();
	public User loginByName(String name) {
		StringHelp sh=new StringHelp();
		User user=new UserDao().findByName(name);
		return user;
	}
	public List<User> findAll() {
		return dao.findAll();
	}
	
}
